import request from '@/utils/request'

// 查询模型管理列表
export function listMangment(query) {
  return request({
    url: '/model/mangment/list',
    method: 'get',
    params: query
  })
}

// 查询模型管理详细
export function getMangment(mid) {
  return request({
    url: '/model/mangment/' + mid,
    method: 'get'
  })
}

// 新增模型管理
export function addMangment(data) {
  return request({
    url: '/model/mangment',
    method: 'post',
    data: data
  })
}

// 修改模型管理
export function updateMangment(data) {
  return request({
    url: '/model/mangment',
    method: 'put',
    data: data
  })
}

// 删除模型管理
export function delMangment(mid) {
  return request({
    url: '/model/mangment/' + mid,
    method: 'delete'
  })
}

export function downloadData(mid) {
  return request({
    url: '/model/mangment/download/' + mid,
    method: 'get',
  })
}
